﻿using Models;
using Models.DTO;
using System;
using System.Collections.Generic;
using System.Text;

namespace IBLL
{
    public interface IProductTypeBLL
    {
        /// <summary>
        /// 查询商品类别表
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="Product_TypeName"></param>
        /// <param name="Description"></param>
        /// <param name="count"></param>
        /// <returns></returns>
        List<GetProductTypeDTO> GetProductTypeList(int page, int limit, string TypeName, out int count);

        /// <summary>
        /// 添加的方法
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool CreateProductType(ProductType entity, out string msg);

        /// <summary>
        /// 软删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DeleteProductType(string id);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        bool DeleteProductTypes(List<string> ids);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="productType"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool UpdateProductType(ProductType productType, out string msg);

        /// <summary>
        /// 根据id获取信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        GetProductTypeDTO GetProductTypeById(string id);

        /// <summary>
        /// 获取所有商品信息的方法
        /// </summary>
        /// <returns></returns>
        List<GetProductTypeDTO> GetProductType();
    }
}
